#include <string>
#include "PetriNet.h"

#ifndef NUMBER_ARGUMENTS
	#define NUMBER_ARGUMENTS		2
#endif

#ifndef ERROR_NUMBER_ARGUMENTS 
	#define ERROR_NUMBER_ARGUMENTS	1
#endif

#ifndef	INPUT_FILE_POSITION
	#define INPUT_FILE_POSITION		1
#endif

int main(int, char*[]);
bool checkNumberArguments(const int&);

int main(int argc, char* argv[])
{
	if (!checkNumberArguments(argc)) return ERROR_NUMBER_ARGUMENTS;
	std::string inputFile(argv[INPUT_FILE_POSITION]);
	pn::PetriNet petriNet(inputFile);
	return 0;
}

bool checkNumberArguments(const int& rArgc)
{
	return (rArgc == NUMBER_ARGUMENTS);
}
